using BikyBall.Game;
using BikyBall.Physic;
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BikyBall.Object
{
    public class World
    {
        public List<GameObject> GameObjects { get; set; }
        public Character Player { get; set; }
        public Map Map { get; set; }
        public Vector3 Shadow  { get; set; }

        public World()
        {
            Player = new Character();
            Map = new Map(20, 3, 20);
            GameObjects = new List<GameObject>();
            GameObjects.Add(Map);
            GameObjects.Add(Player);
            Player.GetProperties<GameProperty>().Position.X = Map.SizeX / 2;
            Player.GetProperties<GameProperty>().Position.Z = Map.SizeZ / 2;
            Player.SetProperties<PhysicProperty>(new PhysicProperty());
            Player.GetProperties<PhysicProperty>().PhysicInteraction = PhysicInteraction.SolidMap | PhysicInteraction.SolidObject | PhysicInteraction.Input | PhysicInteraction.Gravity | PhysicInteraction.Movable;
        }
    }
}
